var _extends = Object.assign || function(e) {
    for (var t = 1; t < arguments.length; t++) {
        var r, a = arguments[t];
        for (r in a) Object.prototype.hasOwnProperty.call(a, r) && (e[r] = a[r]);
    }
    return e;
}, _page_urls = require("../../../utils/page_urls"), _page_urls2 = _interopRequireDefault(_page_urls);

function _interopRequireDefault(e) {
    return e && e.__esModule ? e : {
        default: e
    };
}

var g, app = getApp(), page = app.page, request = app.util.request;

page({
    onLoad: function(e) {
        g = this;
    },
    onReady: function() {},
    onShow: function() {
        request({
            url: "HelpList",
            success: function(e) {
                for (var t = 0; t < e.length; t++) e[t].id == g.options.id && g.setData(_extends({}, e[t]));
            }
        });
    },
    onShareAppMessage: function(e) {
        return {
            title: this.data.title || "详情",
            imageUrl: "",
            path: _page_urls2.default.helper_info + "?pid=" + app.userInfo.id + "&id=" + g.options.id
        };
    }
});